import {
    RPODUCT_ADD
} from '../mutation-types'
export default {
    namespaced:true,//命名空间
    state: { 
        productList:[],
    },
    // @param (state, getters, rootState, rootGetters)
    getters: {
        
    },
    // @param context:{state,`arguments`}
    mutations: { 
        [RPODUCT_ADD](state,code) {
            if (!state.productList.includes(code)){
                state.productList.push(code);
            }
        }
    },
    // @param {dispatch,commit,state, getters, rootState, rootGetters}
    actions: { 
        
    }
}